Active pain management